﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Thirteen23.TED.Views
{
    public class DateTile
    {
        public DateTime Date { get; set; }

        public string Month
        {
            get
            {
                if (Date == DateTime.MinValue)
                {
                    return string.Empty;
                }

                return Date.ToString("MMMM").ToUpper();
            }
        }

        public string Year
        {
            get
            {
                if (Date == DateTime.MinValue)
                {
                    return string.Empty;
                }

                return Date.Year.ToString();
            }
        }

        public string Letter { get; set; }
    }
}
